package cc.iotkit.model.device.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Title: cc.iotkit.model.device.message
 * @author: Sunne
 * @date: 2024-09-26 16:41
 * @Description: 设备能耗统计（用于聚合查询结果返回）
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DeviceConsumePower {

    private String id;

    private String deviceId;
    /**
     * 设备功耗
     */
    private Double consumePower;
    /**
     * 工作时长
     */
    private Long workTime;
    /**
     * 理论功耗
     */
    private Double theoryConsumePower;
    /**
     * 实际总功耗
     */
    private Double totalConsumePower;
    /**
     * 统计截止时间
     */
    private Long time;
    /**
     * 所属平台用户ID
     */
    private String uid;

    public DeviceConsumePower(Long time, Double consumePower) {
        this.time = time;
        this.consumePower = consumePower;
    }

    public DeviceConsumePower(Double totalConsumePower) {
        this.totalConsumePower = totalConsumePower;
    }
}
